package com.example.server.controller;

import com.example.server.config.encrypt.Encryption;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: xieyonghui
 * @Date: 2019/7/3
 * @Description:
 */
@RestController
@RequestMapping(value = "/test")
@Api(value = "/test", description = "test接口控制层")
public class Test {

    @Value("${jwt.header}")
    private String header;

    @GetMapping(value = "/test")
    @Encryption
    @ApiOperation(value = "/test", notes = "/test 方法")
    public String test() {
        return "hello world" + header;
    }

}
